<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsppages/include/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><%=system_name%> - 修改密码</title>
	<base href="<%=basePath%>" />
	<link type="image/x-icon" rel="shortcut icon" href="<%=basePath%>images/favicon.ico" />
 	<meta http-equiv="pragma" content="no-cache" />
 	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<link href="css/style.css" rel="stylesheet" type="text/css" />
	<script src="<%=basePath%>js/common.js" type="text/javascript"></script>
</head>

<body oncontextmenu='return false'>

	<!--top begin-->
	<%@include file="/WEB-INF/jsppages/admin/head.jsp"%>
	<!--top end-->


<div class="wrap100 content">

    <!--left begin-->
	<%@include file="/WEB-INF/jsppages/admin/left.jsp"%>
    <!--left end-->
    
    
    <!--right begin-->
	<div class="right">
            <div class="search">
                <table width="100%" border="0" cellspacing="0" cellpadding="5">
                  <tr>
                    <td width="5%"><img src="images/marking1.gif" width="41" height="44" alt="marking" /></td>
                    <td width="8%">快速查询</td>
                    <td width="12%"><label for="select"></label>
                      <select name="select" id="select">
                        <option>请选择开始日期</option>
                    </select></td>
                    <td width="14%"><label for="textfield"></label>
                    <input name="textfield" type="text" id="textfield" value="请输入船名" /></td>
                    <td width="11%"><a href="#"><img src="images/searchBtn.gif" width="116" height="30" alt="点击查询" /></a></td>
                    <td width="16%">&nbsp;</td>
                    <td width="32%">现在是：2011年10月10日 星期一 23:46</td>
                    <td width="2%">&nbsp;</td>
                  </tr>
                </table>
    
        </div>
        	<form name="form1" method="post" onsubmit="return beforeSubmit(this);">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="60"><h1>用户管理</h1></td>
              </tr>
            </table>
            <div class="rightContentTop">
              <div class="subMenu">
                <ul>
                  <li><a href="#" class="current">修改密码</a></li>
                </ul>
              </div>
            </div>

              <table width="45%" border="0" align="center" cellpadding="3" cellspacing="0">
                <tr>
                  <td width="30%" align="right">姓名:</td>
                  <td width="70%">${sessionScope.memberSessionInfo.name}</td>
                </tr>
                <tr>
                  <td align="right">账号:</td>
                  <td>${sessionScope.memberSessionInfo.sign}</td>
                </tr>
                <tr>
                  <td align="right">旧密码:</td>
                  <td><input type="password" name="oldPassword" id="oldPassword" value=""/> <span style="color:red" id="oldPasswordMes">${oldPasswordErr}</span></td>
                </tr>
                <tr>
                  <td align="right">新密码:</td>
                  <td><input type="password" name="pass" id="pass" value="" /> <span style="color:red" id="passMes"></span></td>
                </tr>
                 <tr>
                  <td align="right">确定新密码:</td>
                  <td><input type="password" name="pass2" id="pass2" value="" /> <span style="color:red" id="pass2Mes"></span></td>
                </tr>
                <tr>
                  <td colspan="2" align="center"><img src="images/enter.jpg" width="90" height="31" alt="提交" onClick="javascript:return beforeSubmit(document.form1);"/></td>
                </tr>
              </table>
        	</form>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
    </table>
</div>
      <!--right end-->
 

</div>

<div id="clear"></div>

<script  type="text/javascript">
function beforeSubmit(obj){
	var oldPassword=$("oldPassword").value;
	var pass=$("pass").value;
	var pass2=$("pass2").value;
	if(oldPassword==''){
		$("oldPasswordMes").innerHTML="旧密码不能为空";
		return false;
	}else{
		$("oldPasswordMes").innerHTML="";
	}
	if(pass==''){
		$("passMes").innerHTML="新密码不能为空";
		return false;
	}else{
		$("passMes").innerHTML="";
	}
	if(pass!=pass2){
		$("pass2Mes").innerHTML="两次输入的密码不一样";
		return false;
	}else{
		$("pass2Mes").innerHTML="";
	}
	obj.submit();
	return true;
}
</script>


</body>
</html>
